home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mtgrap1c / fonts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-06  |  1.0 KB  |  55 lines

  1. /*****************************************************
  2. ; Filename     : fonts.h
  3. ;
  4. ; Date         : 29-6-94
  5. ; Mod. Date    : 
  6. ;
  7. ; Others    : 
  8. ;****************************************************/
  9. #ifndef FONTS_H
  10. #define FONTS_H
  11.  
  12. #include "std_defs.h"
  13.  
  14. typedef struct fonttype
  15. {
  16.     byte    index;
  17.     byte    vspace;    //Space between rows in pixels
  18.     byte    hspace;    //Space between adjacent chars
  19.     byte    width;    //Width of characte
  20.     byte    height;    //Height of character
  21.     byte    *data;    //Actual bitmap
  22.  
  23. } FONT;
  24.  
  25. typedef struct font
  26. {
  27.     byte        flag;        //reserved
  28.     byte        type[6];    //" Font "
  29.     byte        first;        //first valid
  30.     byte        last;        //last valid
  31.     byte        total;
  32.     
  33. } FONT_HEADER;
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39. extern  FONT_HEADER     *font_header;
  40.  
  41. FONT    **mtLoadFont(char *fontname);
  42. int     mtSaveFont(char *fontname,FONT **font);
  43. void    mtFreeFont(FONT **font);
  44. void     mtPutc(int x,int y, int c,FONT **font );
  45. void     mtPrintStr(int x,int y, char* str,FONT **font);
  46. void   mtSetColor(byte col);
  47.  
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.  
  53. #endif FONTS_H
  54.  
  55.